﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zj.Blog.Domain.Core
{
    public abstract class AbstractEntity<TKey>
    {
        [ConcurrencyCheck]
        public TKey Id { get; set; }
        /// <summary>
        /// 处理并发
        /// </summary>
        [Timestamp]
        public byte[] Timestamp { get; set; }
    }
}
